package com.example.hospitalsystem.pojo.dto.auth;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Schema(description = "用户账号注册对象")
@Data
public class RegisterDto {

    @Schema(description = "角色")
    private Integer role;

    @Schema(description = "用户名")
    @NotNull(message = "用户名不能为空")
    private String username;

    @Schema(description = "密码")
    @NotNull(message = "密码不能为空")
    @Length(min=6,max=16,message="密码长度至少6位但是不能超过16位")
    private String password;

    @Schema(description = "密码")
    @NotNull(message = "密码不能为空")
    @Length(min=6,max=16,message="密码长度至少6位但是不能超过16位")
    private String resetPassword;

}
